<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var num1=parseInt(prompt("请输入第一个整数"));
			var ope=prompt("请输入第一个运算符");
			var num2=parseInt(prompt("请输入第二个整数"));
			if(ope=="+"){
				alert(num1+"+"+num2+"="+(num1+num2));
			}else if(ope=="-"){
				alert(num1+"-"+num2+"="+(num1-num2));
			}else if(ope=="*"){
				alert(num1+"*"+num2+"="+(num1*num2));
			}else if(ope=="/"){
				if(num2==0){
					alert("除数不能为0");
				}else{
					alert(num1+"/"+num2+"="+(num1/num2));
				}
			}else{
				alert("请输入正确的运算符");
			}
		</script>
	</body>
</html>
